﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CodeDemon.Models;
using System.Xml.Linq;
using System.Configuration;
using System.Text.RegularExpressions;

namespace CodeDemon.Views.Builder
{
	public partial class CreateReview : ViewPage<ReviewModel>
	{
		public string LinkLogMessage( string logMessage ) {
			string matcher = ConfigurationManager.AppSettings["RegexForDefectInLogMessage"];
			string replacestring = ConfigurationManager.AppSettings["RegexReplaceForLinkDefectInLogMessage"];
			return Regex.Replace( logMessage, matcher, replacestring );
		}
	}
}
